package site.luojie.common.mq.output;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author jie.luo
 * @since 2020/9/16
 */
public interface MessageVerifyCodeOutput {
    /**
     * 验证码输出通道 (消息生产者)
     */
    String VERIFY_CODE_OUTPUT = "verifyCodeOutput";

    /**
     * 验证码输出通道 (消息生产者)
     *
     * @return SubscribableChannel
     */
    @Output(VERIFY_CODE_OUTPUT)
    MessageChannel verifyCodeOutput();
}
